import store from "@/store"

export const imgerror ={
  inserted:(el,options)=>{
    el.onerror=()=>{
      el.src=options.value
    }
  }
}
export const allow ={
  inserted:(el,options)=>{
    const points= store.state.user.userinfo.roles.points
    if(points.includes(options.value)){
      el.style.display='none'
    }
  }
}